package com.cjm.one.model.goods.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cjm.one.model.goods.enums.GoodsCategoryStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class GoodsCategoryVo implements Serializable {
    /**
     * 分类id
     */
    private Long id;

    /**
     * 分类名称
     */
    @TableField("name")
    @Schema(description = "分类名称")
    private String name;

    /**
     *
     */
    @TableField("image_url")
    @Schema(description = "分类图片url")
    private String imageUrl;


    @TableField("parent_id")
    @Schema(description = "父分类id")
    private Long parentId;

    /**
     * 是否显示[0-不显示，1显示]
     */

    @Schema(description = "是否显示[0-不显示，1显示]")
    private GoodsCategoryStatusEnum status;


    @Schema(description = "排序")
    private Integer orderNum;


    private LocalDateTime createTime;


    private LocalDateTime updateTime;

    private String  lableTitle;
    private String parentIds;

    /**
     * 删除标记（0:不可用 1:可用）
     */
    private Integer isDeleted;

    private List<GoodsCategoryVo> children;

    private static final long serialVersionUID = 1L;
}
